package game;
import java.util.Scanner;
public class Game {
    public static void main(String[] args) {
        int max=0;
        int min=100;
        int count=0;
        Scanner N = new Scanner(System.in);
        System.out.println("请输入评委人数：");
        int n = N.nextInt();
        System.out.println("请输入评委分数：");
        for (int i = 0; i < n; i++) {
            int j = N.nextInt();
            if (j > max) {
                max=j;
            }
            if (j < min) {
                min=j;
            }
            count=count+j;
        }
        System.out.println("平均分是："+count/n);
        int count1=(count-max-min)/(n-2);
        System.out.println("去掉一个最大值一个最小值，平均分是"+count1);
    }
}
